<!DOCTYPE html>
<html>
<head>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
    <meta charset="UTF-8">
    <title></title>

    {% include 'template/baseCss.volt' %}

    <link href="/css/vendor/add-drone.less" rel="stylesheet/less" type="text/css">
    <script src="/js/less.min.js"></script>
    <style>
        .button {
            margin: 30px;
            width: 80%;
            max-width: 220px;
            height: 32px;
            line-height: 32px;
            border-radius: 22px;
            background-color: #4ea9fc;
            font-size: 1.5rem;
            color: white;

        }

    </style>
</head>

<body>

<main>
    <form autocomplete="off">
        <div class="title-bar">
            <label class="server-id">研发功能测试</label>
        </div>


        <div id="info-wrap">
            <p class="button" onclick="updateSystem()">更新系统</p>
            {#<p class="button" onclick="postMethod('post_pc_assign')">推送任务分派</p>#}
            {#<p class="button" onclick="postMethod('post_pc_assign_accpet')">推送任务已接收</p>#}
            {#<p class="button" onclick="postMethod('post_pc_assign_deny')">推送任务已拒绝</p>#}
            {##}

        </div>
    </form>
</main>

<div style="display: none;">
    <div id="dbStat">{{ dbTableData }}</div>

</div>
</body>

{% include 'template/baseJs.volt' %}


<script>
    function updateSystem(){
        feimaPost("/setting/updateSystem", {
                },
                function (result) {
                    if(result.message=="ok"){
                        FAlert("更新成功");
                    }else{
                        FAlert(result.message);
                    }

                }
        )
    }
    function postMethod(action) {

        feimaPost("/setting/doTest", {
                    "action": action
                },
                function (result) {
                    FAlert(result.message);
                }
        )
    }
</script>
</html>